package com.cy.ppj.model.doc;

import java.math.BigDecimal;
import java.util.Date;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.mapping.Document;

import com.cy.ppj.model.enums.account.BrokerLevel;

import lombok.Data;

/**
 * 经纪人佣金率修改记录日志
 *
 * @author: tanyilin
 * @create: 2018年10月11日 下午1:57:34
 */
@Data
@Document(collection = "broker_commission_settings_log")
@CompoundIndexes({
        @CompoundIndex(name = "idx_time", def = "{'createTime': -1}")
})
public class BrokerCommissionSettingsLog {

	@Id
    private String id;
	
	private BrokerLevel brokerLevel;
	
	private BigDecimal oldUpgradeCondition;
	
	private BigDecimal newUpgradeCondition;
	
	private BigDecimal oldKeepCondition;
	
	private BigDecimal newKeepCondition;
	
	private BigDecimal oldRate;
	
	private BigDecimal newRate;
	
	private Date createTime;
	
}
